tests: Add a test for link checkout speedup
authorColin Walters <walters@verbum.org>
Wed, 17 Jul 2013 23:47:40 +0000 (19:47 -0400)
committerColin Walters <walters@verbum.org>
Wed, 17 Jul 2013 23:47:40 +0000 (19:47 -0400)
tests/test-basic.sh

index a58a1fd73d50cb7f7ea4f4610f42e2a8a68fdb20..bb38434cbcc7b1c85d64d80304b30079535b2010 100755 (executable)
@@ -19,7 +19,7 @@
 
 set -e
 
-echo "1..34"
+echo "1..35"
 
 . $(dirname $0)/libtest.sh
 
@@ -253,4 +253,9 @@ ostree --repo=repo refs > reflist
 assert_not_file_has_content reflist '^test3$'
 echo "ok reflist --delete"
 
+cd ${test_tmpdir}
+rm -rf test2-checkout
+$OSTREE checkout test2 test2-checkout
+(cd test2-checkout && $OSTREE commit --link-checkout-speedup -b test2 -s "tmp")
+echo "ok commit with link speedup"